import React from "react";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import ErrorIndex from "../pages/error/Index";
import HomeIndex from "../pages/home/Index";
import IndexIndex from "../pages/index/Index";
import ListIndex from "../pages/list/Index";
import LoginIndex from "../pages/login/Index";
import PassIndex from "../pages/pass/Index";
import UserIndex from "../pages/user/Index";
import XianqingIndex from "../pages/xianqing/Index";

const Router: React.FC = () => {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/" element={<HomeIndex />} />
        <Route path="/home" element={<HomeIndex />} />
        <Route path="/index" element={<IndexIndex />} />
        <Route path="/list" element={<ListIndex />} />
        <Route path="/login" element={<LoginIndex />} />
        <Route path="/pass" element={<PassIndex />} />
        <Route path="/user" element={<UserIndex />} />
        <Route path="/xianqing" element={<XianqingIndex />} />

        <Route path="/error" element={<ErrorIndex />} />
        <Route path="*" element={<ErrorIndex />} />
      </Routes>
    </BrowserRouter>
  );
};

export default Router;
